/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.swt.mto.thithu.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Question}.
 * </p>
 *
 * @author    tuan.nguyen
 * @see       Question
 * @generated
 */
public class QuestionWrapper implements Question, ModelWrapper<Question> {
	public QuestionWrapper(Question question) {
		_question = question;
	}

	public Class<?> getModelClass() {
		return Question.class;
	}

	public String getModelClassName() {
		return Question.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("questionId", getQuestionId());
		attributes.put("quizId", getQuizId());
		attributes.put("createUserId", getCreateUserId());
		attributes.put("modifyUserId", getModifyUserId());
		attributes.put("title", getTitle());
		attributes.put("description", getDescription());
		attributes.put("createDate", getCreateDate());
		attributes.put("modifydate", getModifydate());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long questionId = (Long)attributes.get("questionId");

		if (questionId != null) {
			setQuestionId(questionId);
		}

		Long quizId = (Long)attributes.get("quizId");

		if (quizId != null) {
			setQuizId(quizId);
		}

		Long createUserId = (Long)attributes.get("createUserId");

		if (createUserId != null) {
			setCreateUserId(createUserId);
		}

		Long modifyUserId = (Long)attributes.get("modifyUserId");

		if (modifyUserId != null) {
			setModifyUserId(modifyUserId);
		}

		String title = (String)attributes.get("title");

		if (title != null) {
			setTitle(title);
		}

		String description = (String)attributes.get("description");

		if (description != null) {
			setDescription(description);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Date modifydate = (Date)attributes.get("modifydate");

		if (modifydate != null) {
			setModifydate(modifydate);
		}
	}

	/**
	* Returns the primary key of this question.
	*
	* @return the primary key of this question
	*/
	public long getPrimaryKey() {
		return _question.getPrimaryKey();
	}

	/**
	* Sets the primary key of this question.
	*
	* @param primaryKey the primary key of this question
	*/
	public void setPrimaryKey(long primaryKey) {
		_question.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the question ID of this question.
	*
	* @return the question ID of this question
	*/
	public long getQuestionId() {
		return _question.getQuestionId();
	}

	/**
	* Sets the question ID of this question.
	*
	* @param questionId the question ID of this question
	*/
	public void setQuestionId(long questionId) {
		_question.setQuestionId(questionId);
	}

	/**
	* Returns the quiz ID of this question.
	*
	* @return the quiz ID of this question
	*/
	public long getQuizId() {
		return _question.getQuizId();
	}

	/**
	* Sets the quiz ID of this question.
	*
	* @param quizId the quiz ID of this question
	*/
	public void setQuizId(long quizId) {
		_question.setQuizId(quizId);
	}

	/**
	* Returns the create user ID of this question.
	*
	* @return the create user ID of this question
	*/
	public long getCreateUserId() {
		return _question.getCreateUserId();
	}

	/**
	* Sets the create user ID of this question.
	*
	* @param createUserId the create user ID of this question
	*/
	public void setCreateUserId(long createUserId) {
		_question.setCreateUserId(createUserId);
	}

	/**
	* Returns the create user uuid of this question.
	*
	* @return the create user uuid of this question
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getCreateUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _question.getCreateUserUuid();
	}

	/**
	* Sets the create user uuid of this question.
	*
	* @param createUserUuid the create user uuid of this question
	*/
	public void setCreateUserUuid(java.lang.String createUserUuid) {
		_question.setCreateUserUuid(createUserUuid);
	}

	/**
	* Returns the modify user ID of this question.
	*
	* @return the modify user ID of this question
	*/
	public long getModifyUserId() {
		return _question.getModifyUserId();
	}

	/**
	* Sets the modify user ID of this question.
	*
	* @param modifyUserId the modify user ID of this question
	*/
	public void setModifyUserId(long modifyUserId) {
		_question.setModifyUserId(modifyUserId);
	}

	/**
	* Returns the modify user uuid of this question.
	*
	* @return the modify user uuid of this question
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getModifyUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _question.getModifyUserUuid();
	}

	/**
	* Sets the modify user uuid of this question.
	*
	* @param modifyUserUuid the modify user uuid of this question
	*/
	public void setModifyUserUuid(java.lang.String modifyUserUuid) {
		_question.setModifyUserUuid(modifyUserUuid);
	}

	/**
	* Returns the title of this question.
	*
	* @return the title of this question
	*/
	public java.lang.String getTitle() {
		return _question.getTitle();
	}

	/**
	* Sets the title of this question.
	*
	* @param title the title of this question
	*/
	public void setTitle(java.lang.String title) {
		_question.setTitle(title);
	}

	/**
	* Returns the description of this question.
	*
	* @return the description of this question
	*/
	public java.lang.String getDescription() {
		return _question.getDescription();
	}

	/**
	* Sets the description of this question.
	*
	* @param description the description of this question
	*/
	public void setDescription(java.lang.String description) {
		_question.setDescription(description);
	}

	/**
	* Returns the create date of this question.
	*
	* @return the create date of this question
	*/
	public java.util.Date getCreateDate() {
		return _question.getCreateDate();
	}

	/**
	* Sets the create date of this question.
	*
	* @param createDate the create date of this question
	*/
	public void setCreateDate(java.util.Date createDate) {
		_question.setCreateDate(createDate);
	}

	/**
	* Returns the modifydate of this question.
	*
	* @return the modifydate of this question
	*/
	public java.util.Date getModifydate() {
		return _question.getModifydate();
	}

	/**
	* Sets the modifydate of this question.
	*
	* @param modifydate the modifydate of this question
	*/
	public void setModifydate(java.util.Date modifydate) {
		_question.setModifydate(modifydate);
	}

	public boolean isNew() {
		return _question.isNew();
	}

	public void setNew(boolean n) {
		_question.setNew(n);
	}

	public boolean isCachedModel() {
		return _question.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_question.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _question.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _question.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_question.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _question.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_question.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new QuestionWrapper((Question)_question.clone());
	}

	public int compareTo(com.swt.mto.thithu.model.Question question) {
		return _question.compareTo(question);
	}

	@Override
	public int hashCode() {
		return _question.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.swt.mto.thithu.model.Question> toCacheModel() {
		return _question.toCacheModel();
	}

	public com.swt.mto.thithu.model.Question toEscapedModel() {
		return new QuestionWrapper(_question.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _question.toString();
	}

	public java.lang.String toXmlString() {
		return _question.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_question.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Question getWrappedQuestion() {
		return _question;
	}

	public Question getWrappedModel() {
		return _question;
	}

	public void resetOriginalValues() {
		_question.resetOriginalValues();
	}

	private Question _question;
}